/*
 * PlaceIF.java
 * 
 * Created on Jun 5, 2007, 1:35:38 AM
 * 
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.infomancers.workflow;

import java.util.List;
import java.util.Map;

/**
 *
 * @author aviadbd
 */
public interface Place {

    public void addPlaceListener(PlaceListener listener);
    public void removePlaceListener(PlaceListener listener);

    public void addToken(Token token);

    public void setOutputTransitions(List<Transition> outputTransitions);
    public List<Transition> getOutputTransitions();
    
    public Map<String, String> getProperties();

    public boolean lockToken(Transition transition, Token token);
    public void removeToken(Transition transition, Token token);
    public void unlockToken(Transition transition, Token token);
}
